import axios from "../../utils/request"
//查询
export const warehouseSearchReq = (params:any) => axios({
    url: '/drugs/search',
    method: 'get',
    params
})
//添加药品
export const drugsAddReq  = (data:any) => axios({
    url: '/drugs/add',
    method: 'post',
    data
})
//修改
export const changeReq  = (params:any) => axios({
    url: '/drugs/edit',
    method: 'get',
    params
})
//删除
export const delReq  = (params:any) => axios({
    url: '/drugs/del',
    method: 'get',
    params
})
//批量删除
export const allDelReq  = (data:any) => axios({
    url: '/drugs/batchdel',
    method: 'post',
    data
})